<include file="Base:header" />

<!--正文内容 开始-->
<style type="text/css">
  
  
</style>
 <div class="graybg" style="padding-bottom:30px;">
     <div class="main">   
      <div class="selector"> 
   <div class="demand selector_list_style clearfix"> 
    <span><?=$cat_tree[0]["name"]?>：</span>

    <ul> 
     <?php foreach ($cat_tree[0]["childs"] as $key => $cat_tree_childs) {
     ?>
     <li> <a  class="litle_menu_drop_title"><?=$cat_tree_childs["name"]?><i></i></a> 
     <div class="litle_menu_drop"> 
      <?php foreach ($cat_tree_childs["childs"] as $key => $cat_tree_childs_childs) { ?>
      
       <dl> 
        <dt>
         <a ><?=$cat_tree_childs_childs["name"]?></a>
        </dt> 
        <dd>
        <?php foreach ($cat_tree_childs_childs["childs"] as $key => $cat_tree_childs_childs_childs) { ?>
         <a href="{:u('product/search')}?cid=<?=$cat_tree_childs_childs_childs[cid]?>&pid=1"><?=$cat_tree_childs_childs_childs["name"]?></a> 
        <?php }?>
        </dd> 
       </dl> 
      
      <?php }?>
     </div>
     </li> 
     
     <?php }?>
     </ul> 
   </div> 
   <div class="industry selector_list_style clearfix"> 
    <span><?=$cat_tree[1]["name"]?>：</span>

    <ul> 
     <?php foreach ($cat_tree[1]["childs"] as $key => $cat_tree_childs) { ?>
      <li><a href="{:u('product/search')}?cid=<?=$cat_tree_childs[cid]?>&pid=2" ><?=$cat_tree_childs["name"]?></a></li> 
      <!-- <a href="javascript:;" data-tid="110">服装</a>  -->
     <?php }?>
    
     <div class="more">
      更多
      <i></i>
     </div> 
    </ul> 
   </div> 
   <div class="time selector_list_style clearfix"> 
    <span><?=$cat_tree[2]["name"]?>：</span>

    <ul> 
     <?php foreach ($cat_tree[2]["childs"] as $key => $cat_tree_childs) { ?>
     <li><a href="{:u('product/search')}?cid=<?=$cat_tree_childs[cid]?>&pid=3"><?=$cat_tree_childs["name"]?></a></li> 
     <?php } ?>
     <div class="early more">
      更早
      <i></i>
     </div> 

     <div class="time_FT">

     <span style="line-height:4px;">From</span> <div class="FT_box">
     <input type="text" id="From_year" placeholder="Year"  maxlength='4'/>
     <i class="yaer_up"></i>
     <i class="yaer_down"></i>
     </div>

     <span style="line-height:4px;">To</span><div class="FT_box">
     <input type="text" id="To_year" placeholder="Year"  maxlength='4'/>
     <i class="yaer_up"></i>
     <i class="yaer_down"></i>
     </div>

     <b id="year_go">Go</b>
     </div>



    </ul> 
   </div> 
   <div class="prize selector_list_style clearfix"> 
    <span><?=$cat_tree[3]["name"]?>：</span>

    <ul> 
    <?php foreach ($cat_tree[3]["childs"] as $key => $cat_tree_childs) { ?>
     <li> <a  class="litle_menu_drop_title"><?=$cat_tree_childs["name"]?><i></i></a> 
      <div class="litle_menu_drop"> 
        <?php foreach ($cat_tree_childs["childs"] as $key => $cat_tree_childs_childs) { ?>
         <a href="{:u('product/search')}?cid=<?=$cat_tree_childs_childs[cid]?>&pid=4" data-tid="486"><?=$cat_tree_childs_childs["name"]?></a> 
        <?php } ?>
      </div></li>
     <?php } ?>
    </ul> 
   </div> 
   <div class="country selector_list_style clearfix"> 
    <span><?=$cat_tree[4]["name"]?>：</span>

    <ul> 
     <?php foreach ($cat_tree[4]["childs"] as $key => $cat_tree_childs) { ?>
         <li><a href="{:u('product/search')}?cid=<?=$cat_tree_childs[cid]?>&pid=5">
         <?=$cat_tree_childs["name"]?></a></li> 
      <?php } ?>
     <div class="more">
      更多
      <i></i>
     </div> 
    </ul> 
   </div> 
   <div class="type selector_list_style"> 
    <span><?=$cat_tree[5]["name"]?>：</span>

    <ul> 
      <?php foreach ($cat_tree[5]["childs"] as $key => $cat_tree_childs) { ?>
         <li><a href="{:u('product/search')}?cid=<?=$cat_tree_childs[cid]?>&pid=6">
         <?=$cat_tree_childs["name"]?></a></li> 
      <?php } ?>
    </ul> 
   </div> 
  </div>
      <div class="cases">
          <ul>
            <volist name="list" id="vo">
                <li>
                    <div class="cases_imgout">
                      <a href="{:U('product/details',array('id'=>$vo['id']))}" class="cases_img"> <div style="background:url({:get_default_img($vo['image_id'])})"></div> </a>
                    </div>
                    <p>{$vo.summary}</p>
                     <span>{$vo.title}</span>
                </li>
            </volist>
          </ul>
      </div>

      <span id="toTop"></span>


     </div>
   
    <!-- 翻页----开始-->
                <div class="pagebox">
                    {$page}
                    <div style="clear:both"></div>
                </div>

                <!-- 翻页----结束-->

  </div>
        <!-- 正文内容----结束-->
        
<include file="Base:footer" />
        

    <script type="text/javascript">
    $(window,document,document.html).scroll(function(e) {
        var winTop = $(window).scrollTop();
        e.preventDefault();
        if(!$("#header").hasClass("mini")){
          if(winTop>=400){
            if($("#header_fix").hasClass("fix")){
              return;
            }
            //$("#header").addClass("mini");
            $("#header_fix").addClass("fix");
           }
           if(winTop <= 399){
              if($("#header_fix").hasClass("fix")){
                //$("#header").removeClass("mini");
                $("#header_fix").removeClass("fix");
              }
           }
        }
         
    });
    </script>

 <script type="text/javascript">




// function changeWidth(){
//     var url = $(this).attr("src");
//     var img = new Image();
//     var img_url = 'url'+Date.parse(new Date());
//     img.src = img_url;
//     var H = img.height;
//      if(H<218){
//        $(this).css('width', '450px');
//      }
//       console.log(url,H);
// }


$('.cases_img img').load(function() {
      var H =  $(this).height();
     if(H<218){
       $(this).css('width', '450px');
     }
      console.log(H);

});
 </script>
<!-- +Date.parse(new Date()) -->

</body>
</html>